﻿@using Pottery.FrontEnd.Resources
@using Pottery.FrontEnd.Helpers;

@{ 

    if (!ApplicationCulture.Culture.Equals(Pottery.Module.Infractructure.ModuleConstants.LANGUAGE_EN))
    { 
    @Html.ActionLink(_Language.English, "SwitchLanguage", "Home", new
                                            {
                                                language = "en",
                                                controllerName = Url.RequestContext.RouteData.Values["controller"],
                                                actionName = Url.RequestContext.RouteData.Values["action"]
                                            }, null)
    <img src= "../../Content/Images/flag.en.png" alt="@_Language.English" />
    }
    else
    {
  
    @Html.ActionLink(_Language.Russian, "SwitchLanguage", "Home", new
                                            {
                                                language = "ru",
                                                controllerName = Url.RequestContext.RouteData.Values["controller"],
                                                actionName = Url.RequestContext.RouteData.Values["action"]
                                            }, null) 
    <img src= "../../Content/Images/flag.ru.png" alt="@_Language.Russian" />
    }
}
